package Structural_design_pattern.Composite_Pattern.Example3;

public class VideoFile extends AbstractFile{
    private String name;

    public VideoFile(String name){
        this.name = name;
    }

    public void add (AbstractFile element){
        super.add(element);
    }

    public void remove (AbstractFile element){
        super.remove(element);
    }

    public void display(){
        System.out.println(name);
    }
}
